<%--사용안하는 페이지임 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
    <script type="text/javascript">
        $(document).ready(function() {
         // this "tableDiv" must be the table's class
            
            $(".tableDiv").each(function() {
                var Id = $(this).get(0).id;
                var maintbheight = 355;
                var maintbwidth = 724;
 
                $("#" + Id + " .FixedTables").fixedTable({
                    width: maintbwidth,
                    height: maintbheight,
                    //왼쪽 고정수
                    fixedColumns: 3,
                 // header style
                    classHeader: "fixedHead",
                    // footer style        
                    classFooter: "fixedFoot",
                    // fixed column on the left        
                    classColumn: "fixedColumn",
                    // the width of fixed column on the left      
                    fixedColumnWidth: 240,
                    // table's parent div's id           
                    outerId: Id
                    // tds' in content area default background color                     
                    //Contentbackcolor: "#FFFFFF",
                    // tds' in content area background color while hover.     
                    //Contenthovercolor: "#99CCFF", 
                    // tds' in fixed column default background color   
                    //fixedColumnbackcolor:"#187BAF", 
                    // tds' in fixed column background color while hover. 
                    //fixedColumnhovercolor:"#99CCFF"  

                });
            });
        });
        function test1(){
            alert(document.getElementById("thHidden"+1).value);
        }
    </script>
    <style type="text/css">
    	table.fixedTable {border-collapse:collapse; }
        .fixedColumn .fixedTable td, .fixedHead td, .fixedFoot td
        {
            background-color: #5c6467; color: #fff;
        }
        .fixedFoot td{border: none;}
        .fixedTable td
        {
            border-top:1px solid #dfdfdf; font-size:0.9em; padding:5px 2px; margin:0; color:#666;background-color: #ffffff;
        }
        .fixedContainer ..fixedTable td{
        background:url(images/bg_tableRow.gif) repeat-x 0px 1px;
        }
    </style>
</head>
<body>
<div class="box">
      		<h4 class="white">자산위협매트릭스</h4>
        <div class="box-container1" style="height: 460px">     		
        <form name="riskIDelForm" action="riskIAction.do" method="post">
        	<input type="hidden" name="mode" value="atmetrix_delete"></input>
        	<input type="hidden" name="pro_id"  id="pro_id" value="${sessionScope.lastProId }"></input>
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td><div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
      					<option value="option2">Delete All</option></select>
      					<a href="#" class="button" onclick="javascript: riskIWritePage('atmetrix_insertPage')"><span>작성</span></a>
      					-->
      					<a href="#" class="button" onclick="javascript: atmetrix_insertPage()"><span>생성</span></a>
      					<a href="#" class="button" onclick="javascript: riskIDelete()"><span>삭제</span></a></div></td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
     		    <div id="tableDiv_General" class="tableDiv">
     		      	<table id="Open_Text_General" class="FixedTables" style="table-layout: fixed">
     		      	 <thead>
		                <tr>
		                	<th>유형</th>
		                	<th>위협명</th>
		                	<th>상세명</th>
		                	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
		                    	<th id="th${status.index+1 }">${list.ak_nm2 }<input type="hidden" id="thHidden${status.index+1 }" value="${list.base_lev1 }"></input></th>
		                    </c:forEach>
		                </tr>
		            </thead>
		            <tbody>
		                <tr>
		                    <td style="text-overflow:ellipsis; word-break:break-all;">
		                    	12312312312312
		                    </td>
		                    <td width="100px">
		                        void
		                    </td>
		                   <td width="100px">
		                        function
		                    </td>
		                    <td width="100px">
		                        function<input type="button" onclick="test1(this)"></input>
		                    </td>
		                   <td width="100px">
		                        function
		                    </td>
		                    <td width="100px">
		                        function
		                    </td>
		                   <td width="100px">
		                        def
		                    </td>
		                     <td width="100px">
		                        def
		                    </td>
		                     <td width="100px">
		                        def
		                    </td>
		                     <td width="100px">
		                        def
		                    </td>
		                     <td width="100px">
		                        def
		                    </td>
		                </tr>
		            </tbody>
     		      	</table>
     		    </div>
      
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>